package com.itmuch.box.domain.content.entity;
// Generated 2016-1-10 15:34:47 by Hibernate Tools 4.3.1.Final

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.itmuch.box.core.base.BaseEntity;

/**
 * Content generated by hbm2java
 */
@Entity
@Table(name = "f_content", catalog = "yayi_spring_boot")
@DynamicInsert
@DynamicUpdate
public class Content extends BaseEntity {

    private Integer id;
    private Integer memberId;
    private Integer categoryId;
    private Integer sortId;
    private Integer modelId;
    private String cover;
    private String title;
    private String keyword;
    private String author;
    private String source;
    private String sourceUrl;
    private String relationIds;
    private String summary;
    private Date issueTime;
    private Date createTime;
    private Date updateTime;
    private Integer createId;
    private Integer updateId;

    public Content() {
    }

    public Content(Integer memberId, Integer categoryId, Integer modelId, String cover, String title, String keyword, String author, String source,
            String sourceUrl, String relationIds, String summary, Date issueTime, Date createTime, Date updateTime, Integer createId,
            Integer updateId) {
        this.memberId = memberId;
        this.categoryId = categoryId;
        this.modelId = modelId;
        this.cover = cover;
        this.title = title;
        this.keyword = keyword;
        this.author = author;
        this.source = source;
        this.sourceUrl = sourceUrl;
        this.relationIds = relationIds;
        this.summary = summary;
        this.issueTime = issueTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createId = createId;
        this.updateId = updateId;
    }

    public Content(Integer memberId, Integer categoryId, Integer sortId, Integer modelId, String cover, String title, String keyword, String author,
            String source, String sourceUrl, String relationIds, String summary, Date issueTime, Date createTime, Date updateTime, Integer createId,
            Integer updateId) {
        this.memberId = memberId;
        this.categoryId = categoryId;
        this.sortId = sortId;
        this.modelId = modelId;
        this.cover = cover;
        this.title = title;
        this.keyword = keyword;
        this.author = author;
        this.source = source;
        this.sourceUrl = sourceUrl;
        this.relationIds = relationIds;
        this.summary = summary;
        this.issueTime = issueTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createId = createId;
        this.updateId = updateId;
    }

    @Override
    @Id
    @GeneratedValue(strategy = IDENTITY)

    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "member_id", nullable = false)
    public Integer getMemberId() {
        return this.memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    @Column(name = "category_id", nullable = false)
    public Integer getCategoryId() {
        return this.categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    @Column(name = "sort_id")
    public Integer getSortId() {
        return this.sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    @Column(name = "model_id", nullable = false)
    public Integer getModelId() {
        return this.modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }

    @Column(name = "cover", nullable = false)
    public String getCover() {
        return this.cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Column(name = "title", nullable = false)
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "keyword", nullable = false)
    public String getKeyword() {
        return this.keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    @Column(name = "author", nullable = false, length = 50)
    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Column(name = "source", nullable = false, length = 50)
    public String getSource() {
        return this.source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Column(name = "source_url", nullable = false)
    public String getSourceUrl() {
        return this.sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    @Column(name = "relation_ids", nullable = false)
    public String getRelationIds() {
        return this.relationIds;
    }

    public void setRelationIds(String relationIds) {
        this.relationIds = relationIds;
    }

    @Column(name = "summary", nullable = false, length = 510)
    public String getSummary() {
        return this.summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "issue_time", nullable = false, length = 0)
    public Date getIssueTime() {
        return this.issueTime;
    }

    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", nullable = false, length = 0)
    public Date getCreateTime() {
        return this.createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time", nullable = false, length = 0)
    public Date getUpdateTime() {
        return this.updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    @Column(name = "create_id", nullable = false)
    public Integer getCreateId() {
        return this.createId;
    }

    @Override
    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    @Override
    @Column(name = "update_id", nullable = false)
    public Integer getUpdateId() {
        return this.updateId;
    }

    @Override
    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

}
